package top.scauwlt.registry;

import top.scauwlt.extension.SPI;
import top.scauwlt.remoting.dto.RpcRequest;

import java.net.InetSocketAddress;

/**
 * @Author wmm
 * @Date 2022/7/24 23:22
 */
@SPI
public interface ServiceDiscovery {
    /**
     * 发现服务，返回地址
     * @param rpcRequest
     * @return
     */
    InetSocketAddress lookupService(RpcRequest rpcRequest);
}
